package com.example.charlotte.snakegame;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;

public class AboutActivity extends BaseActivity {
    private GameMusic music;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_about);
        music=new GameMusic(this);
    }

    public void email(View view) {
        music.startMusic(3);
        Intent data=new Intent(Intent.ACTION_SENDTO);
        data.setData(Uri.parse("mailto:charlotte6@qq.com"));
        data.putExtra(Intent.EXTRA_SUBJECT, "贪吃蛇手游");
        startActivity(data);

    }
    public void github(View view) {
        music.startMusic(3);
        Uri uri = Uri.parse("https://github.com/Charlotte666/SnakeGame");
        Intent intent = new Intent(Intent.ACTION_VIEW, uri);
        startActivity(intent);
    }

}
